package com.github.caiqy.shirodemo.db.service.impl;

import com.github.caiqy.shirodemo.core.AbstractService;
import com.github.caiqy.shirodemo.db.mapper.RoleMapper;
import com.github.caiqy.shirodemo.db.mapping.Role;
import com.github.caiqy.shirodemo.db.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl extends AbstractService<Role> implements RoleService{

    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<Role> selectRoleByUserId(Integer userId) {
        return roleMapper.selectRoleByUserId(userId);
    }
}
